2020-2021 Sunseeker Telemetry and Lighting System
battbak_ex1_calendermodeLPM3.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 
void RTC_B_ISR (void)
 

Variables

volatile Calendar newTime
 

Function Documentation

◆ main()

void main ( void  )

Definition at line 70 of file battbak_ex1_calendermodeLPM3.c.

References __no_operation(), and param.

◆ RTC_B_ISR()

void RTC_B_ISR ( void  )

Definition at line 144 of file battbak_ex1_calendermodeLPM3.c.

References __no_operation(), and newTime.

Variable Documentation

◆ newTime

volatile Calendar newTime

RTC_B in Calendar mode with LPM3, Interruptions every 1s, 1m, and 5th day of week at 5:00pm

This program demonstrates the battery backup peripheral working with RTC_B in LPM3. The LOCKBAK bit is cleared before RTC interrupt enabled and RTC interrupts will be serviced as normal interrupts. Note that if XT1 is not present the code loops in an infinite loop. ACLK = LFXT1 = 32768Hz, MCLK = SMCLK = default DCO = 32 x ACLK = 1048576Hz

Tested On: MSP430F6638

/|\ | XIN|- | | | 32kHz —|RST XOUT|- | | | P1.0 |--> Toggles every second | |

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • RTC peripheral
  • UCS peripheral
  • GPIO Port peripheral
  • Battery Backup peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • RTC_B_VECTOR

Definition at line 68 of file battbak_ex1_calendermodeLPM3.c.

Referenced by RTC_B_ISR().